package com.reportgenerate.marketreport.exception;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @program: reportgenerate
 * @Description: 错误信息的 Error 对象
 * @author: Mr.Cheng
 * @Email: ccelephant_518@126.com
 * @date: 2023/8/22 00:00
 */
@ApiModel(value="错误返回对象", description="错误返回对象")
@Data
public class ErrorData {
    @ApiModelProperty(value = "错误码")
    private String code;
    @ApiModelProperty(value = "错误信息")
    private String message;
    public ErrorData(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public ErrorData(String message) {
        this.message = message;
    }

    public ErrorData() {
    }
}
